-- GENERATED SPELL FOR [Blindlight Murloc] --


function spell0_4818(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_4818', 669, 1)
end

function spell1_4818(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4818', 30275, 1)
end

function Sorts_4818(pUnit, Event)
local choix_sorts_4818 = math.random(0, 1)
if choix_sorts_4818 == 0 then
pUnit:RegisterEvent('spell0_4818', 1, 1)
end
if choix_sorts_4818 == 1 then
pUnit:RegisterEvent('spell1_4818', 1, 1)
end
end

function mob4818_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4818', math.random(1500, 3000), 1)
end

function mob4818_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4818_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4818_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4818, 1, 'mob4818_Action')
RegisterUnitEvent(4818, 2, 'mob4818_Leave')
RegisterUnitEvent(4818, 3, 'mob4818_Kill')
RegisterUnitEvent(4818, 4, 'mob4818_Die')
